package com.excilys.patricksbank.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;
import com.excilys.patricksbank.model.Utilisateur;

@Controller
@RequestMapping(value = "/admin")
@SessionAttributes("utilisateur")
public class AdminController {
	
	@RequestMapping(value = "/home.html")
	public String buildAdminHome(Model model, @ModelAttribute("utilisateur") Utilisateur user) {
		return "admin";
	}
}
